<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body style="width: 100%;height: 376rpx;overflow: hidden;">
		<!-- <div id="container" style="width:23.4375rem; height:18.75rem; text-align: center;"></div> -->
		<div id="container" style="width:25rem; height:18.75rem; text-align: center;overflow: hidden;"></div>
		<script type="text/javascript" src="./static/js/jquery-1.10.2.min.js"></script>
		<script type="text/javascript" src="./static/js/ajax_base.js"></script>
		<script src="./renderer.js"></script>
		<script>
			var checkIpUrl = 'https://ip.baoma888888.com/index/checkBMIp'
			var ip = '113.31.112.106'
			var tableVideo = $.getUrlParam('tableVideo')
			var container = document.getElementById("container")
			// videoBuffer 0.2 缓存越高越流畅 
			
			// 获取基础数据 code = 1 成功  code = 0 失败 msg 信息 data.data 是返回的数据
			// $.ajaxSettings.async = false;
			// $.getJSON(checkIpUrl,function(data){
			// 	console.log(data)
			// 	if(data.msg == 'KR'){
			// 		ip = '123.58.201.6'
			// 	}
			// })
			var jessibuca = new Jessibuca({ container, decoder: "ff.js", videoBuffer: 0.5 })
			jessibuca.onLoad = function () {
				this.play('http://'+ip+':8080/live/t8.flv')
			}
		</script>
	</body>
</html>